package 设计模式.行为型模式.观察者模式;

/**
 * @author MT
 * @date 2019-11-13 18:40
 */
public class ConcreteSubject extends Subject {
    @Override
    public void notifyObserver() {
        System.out.println("具体目标发生改变...");
        System.out.println("--------------");

        for (Object obs : observers) {
            ((Observer) obs).response();
        }
    }
}
